#[macro_export]
macro_rules! print {
    ($($arg:tt)*) => {
        $crate::logging::print(core::format_args!($($arg)*));
    };
}

#[macro_export]
macro_rules! println {
    ($($arg:tt)*) => {
        $crate::logging::print(core::format_args!($($arg)*));
        $crate::print!("\r\n");
    };
}

#[inline]
pub fn print(args: core::fmt::Arguments) {
    crate::kernel_hal::console::serial_write_fmt(args);
}
